home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / idl / nsIGenericInterfaceInfoSet.idl < prev    next >
Text File  |  2006-05-08  |  4KB  |  96 lines

  1. /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3.  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  *
  5.  * The contents of this file are subject to the Mozilla Public License Version
  6.  * 1.1 (the "License"); you may not use this file except in compliance with
  7.  * the License. You may obtain a copy of the License at
  8.  * http://www.mozilla.org/MPL/
  9.  *
  10.  * Software distributed under the License is distributed on an "AS IS" basis,
  11.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  * for the specific language governing rights and limitations under the
  13.  * License.
  14.  *
  15.  * The Original Code is mozilla.org code.
  16.  *
  17.  * The Initial Developer of the Original Code is
  18.  * Netscape Communications Corporation.
  19.  * Portions created by the Initial Developer are Copyright (C) 2002
  20.  * the Initial Developer. All Rights Reserved.
  21.  *
  22.  * Contributor(s):
  23.  *
  24.  * Alternatively, the contents of this file may be used under the terms of
  25.  * either the GNU General Public License Version 2 or later (the "GPL"), or
  26.  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27.  * in which case the provisions of the GPL or the LGPL are applicable instead
  28.  * of those above. If you wish to allow use of your version of this file only
  29.  * under the terms of either the GPL or the LGPL, and not to allow others to
  30.  * use your version of this file under the terms of the MPL, indicate your
  31.  * decision by deleting the provisions above and replace them with the notice
  32.  * and other provisions required by the GPL or the LGPL. If you do not delete
  33.  * the provisions above, a recipient may use your version of this file under
  34.  * the terms of any one of the MPL, the GPL or the LGPL.
  35.  *
  36.  * ***** END LICENSE BLOCK ***** */
  37.  
  38. /* The nsIGenericInterfaceInfo/nsIGenericInterfaceInfoSet public declarations.*/
  39.  
  40.  
  41. #include "nsISupports.idl"
  42. #include "nsIInterfaceInfo.idl"
  43. #include "nsIInterfaceInfoManager.idl"
  44.  
  45. // forward declaration of non-XPCOM types
  46.  
  47. [ptr] native XPTMethodDescriptorPtr(XPTMethodDescriptor);
  48. [ptr] native XPTConstDescriptorPtr(XPTConstDescriptor);
  49. [ptr] native XPTParamDescriptorPtr(XPTParamDescriptor);
  50. [ptr] native XPTTypeDescriptorPtr(XPTTypeDescriptor);
  51.  
  52. /* this is NOT intended to be scriptable */
  53. [uuid(8344a200-18ed-4538-8d44-e50b5156b564)]
  54. interface nsIGenericInterfaceInfo : nsIInterfaceInfo
  55. {
  56.     /**
  57.     * All members except params* and result* copied
  58.     */
  59.  
  60.     PRUint16 appendMethod(in XPTMethodDescriptorPtr aMethod);
  61.     
  62.     /**
  63.     * All members copied
  64.     */
  65.     PRUint16 appendConst(in XPTConstDescriptorPtr aConst);
  66. };
  67.  
  68. /* this is NOT intended to be scriptable */
  69. [uuid(8cc674ee-52ba-45fa-b897-bb88d35eaa91)]
  70. interface nsIGenericInterfaceInfoSet : nsIInterfaceInfoManager
  71. {
  72.     /**
  73.     * Methods include pointers to param arrays allocated here.
  74.     */ 
  75.     XPTParamDescriptorPtr allocateParamArray(in PRUint16 aCount);
  76.     
  77.     /**
  78.     * Used for type that is in an array.
  79.     */ 
  80.     XPTTypeDescriptorPtr allocateAdditionalType(out PRUint16 aIndex);
  81.  
  82.     PRUint16 createAndAppendInterface(in string aName, in nsIIDRef aIID,
  83.                                       in PRUint16 aParent, in PRUint8 aFlags,
  84.                                       out nsIGenericInterfaceInfo aInfo);
  85.     PRUint16 appendExternalInterface(in nsIInterfaceInfo aInfo);
  86.     PRUint16 indexOf(in nsIIDRef aIID);
  87.     PRUint16 indexOfByName(in string aName);
  88.     nsIInterfaceInfo interfaceInfoAt(in PRUint16 aIndex);
  89. };
  90.  
  91. %{C++
  92. // The contractID for the implementation built into iiextras
  93. #define NS_GENERIC_INTERFACE_INFO_SET_CONTRACTID "@mozilla.org/genericInterfaceInfoSet;1"
  94. %}
  95.  
  96.